/*Starnt.h*/
#include <windows.h>
#include<stdlib.h>
#include<math.h>
#include"windowgui.h"
#include"starhzk.h"

#define PI 3.1415926
#define SHOTX 220
#define SHOTY 120
#define TIMERVAL 80

static struct              //PlayArgument
{
    int bullet;
    int hit;
    int skill;
    int soundif;
    int n;          //Number of star
}
 pa;
static struct
{
    int angle;
    int x;
    int y;
    int v;
    int r;
}
sa;

static int stage = 2;

void dispatcher(HWND hwnd,WPARAM wparam,LPARAM lparam);
void init_game(HWND hwnd);
void init_star(HWND hwnd);
void show_star(HWND hwnd);
void shot_star(HWND hwnd, int mx, int my);

int getspeedbymouse(LPARAM lparam);

void protitle_50year(HWND hwnd);
void title(HWND hwnd);
void askspeed(HWND hwnd);
void goodbye(HWND hwnd);
void goodbye2(HWND hwnd);
void askagain(HWND hwnd);
void goodbye3(HWND hwnd);
void goodbye4(HWND hwnd);
void goodbye5(HWND hwnd);

void putstar(HWND hwnd,int x,int y,int r,int colorR,int colorG,int colorB);
void background(HWND hwnd);
void drawbackground(HWND hwnd,int colorR,int colorG,int colorB);
void titlestar(HWND hwnd);
void explode_star(HWND hwnd,int x,int y,int r);
